﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE	html PUBLIC	"-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html	xmlns="http://www.w3.org/1999/xhtml">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <title>贵美商城</title>
 <link rel="stylesheet"	type="text/css"	href="css/global.css"	/>
 <link rel="stylesheet"	type="text/css"	href="css/layout.css"	/>
 <script type="text/JavaScript">
 	function multiCheck(oThis){
 		var oInput=document.getElementsByTagName("input");
 		for (var i=1;i<oInput.length;i++){ 	
 				oInput[i].checked=oThis.checked;}
 	}
	</script>
</head>
<body>
<div id="container">
	<iframe id="header" runat="server" src="header.jsp" width="980" height="136" frameborder="0" scrolling="no"></iframe>
	<div class="catlist a_c">
	
		<ul class="w20p check">
			<h3><input type="checkbox" name="checkall" onclick="multiCheck(this)" />全选</h3>
			<c:forEach var="list" items="${list }">
			<li><input type="checkbox" /></li>
			</c:forEach>
		</ul>
		<ul class="w20p">
			<h3>商品图片</h3>
			<c:forEach var="list" items="${list }">
			<li><a href="ShowServlet?wid=${list.wid }"><img src="${list.wimgsrc }" alt="${list.wname }" /></a></li>
			</c:forEach>
		</ul>
		<ul class="w50p info">
			<h3>商品名称/出售者/联系方式</h3>
			<c:forEach var="list" items="${list }">
			<li><a href="ShowServlet?wid=${list.wid }">${list.wname }</a><br />出售者：<a href="#">${list.username }<br /><a href="#"><img src="images/contactme.gif" alt="alt" /> <img src="images/addfav.gif" alt="收藏" />收藏</a></li>
			</c:forEach>																			
		</ul>
		<ul class="w10p price">
			<h3>价格</h3>
			<c:forEach var="list" items="${list }">
			<li>一口价：<br />${list.wprice }</li>
			</c:forEach>
		</ul>
	</div>
	 <p align="right"> 当前页数:[${page }/${pagecount }]&nbsp; 
        <c:choose>
        <c:when test="${page == pagecount }">下一页</c:when>
        <c:otherwise><a href="${warestype}?page=${page+1 }&&type=${type}">下一页</a> </c:otherwise>
        </c:choose>
        <c:choose>
        <c:when test="${page>1 }"><a href="${warestype}?page=${page-1 }&&type=${type}">上一页</a> </c:when>
       <c:otherwise>上一页 </c:otherwise>
        </c:choose>
        <c:choose>
        <c:when test="${page == pagecount }">末页 </c:when>
       <c:otherwise> <a href="${warestype}?page=${pagecount }&&type=${type}">末页</a> </p></c:otherwise>
        </c:choose>
	<iframe id="footer" runat="server" src="footer.jsp" width="980" height="136" frameborder="0" scrolling="no"></iframe>
</div> <!--container end-->	
</body>
</html>
